package com.bdqn.service;

import com.bdqn.pojo.SysRole;
import com.bdqn.pojo.SysUser;
import com.bdqn.util.Page;
import com.bdqn.util.PageSupport;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserService {
    boolean add(SysUser sysUser);
    Long count(@Param("realName") String  realName,@Param("roleId")Long roleId);
    List<SysUser> page(@Param("realName") String  realName,@Param("roleId")Long roleId,@Param("page") PageSupport page);
    SysUser login(@Param("account") String account, @Param("password")String password);

    boolean userExist(String account);

    SysUser getById(Long userid);

    boolean del(Long userid);
}
